ffmpeg -f video4linux2 -i "/dev/video9" -vcodec libx264 -pix_fmt yuv420p mycamera.h264

gst-launch-1.0 v4l2src device=/dev/video9 ! videoconvert ! 'video/x-raw,format=(string)NV12,width=640,height=480,framerate=(fraction)30/1' ! queue ! x264enc bitrate=10240 ! udpsink host=127.0.0.1 port=5000 sync=false

gst-launch-1.0 -f flv rtmp://127.0.0.1/live/mytest ! rtph264depay ! "video/x-h264, stream-format=byte-stream" ! filesink location=test.264
gst-launch-1.0  -f v4l2 -video_size 640x480 -framerate 30 -i /dev/video9 -q 10 -f flv rtmp://127.0.0.1/live/mytest

sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

gst-launch-1.0 filesrc location=./aaa.mp4 ! decodebin ! autovideosink

sudo apt-get install gtk-doc-tools
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev

gst-launch-1.0 rtspsrc latency=20 location="rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov" ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink



环境光强度(ALS)、接近距离(PS)和红外线强度(IR)
3 轴加速度和 3 轴陀螺仪

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! kmssink
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! videoconvert ! ximagesink
gst-launch-1.0 v4l2src device=/dev/video9 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! ximagesink

gst-launch-1.0 -v v4l2src device=/dev/video9 ! "video/x-raw, format=(string)YUY2, \
width=(int)640, height=(int)480, framerate=(fraction)30/1" ! videoconvert ! fbdevsink

同理，实验前请准备 USB 摄像头，符合 UVC（USB video device class）协议的摄像头均可。
UVC，全称为：USB video class 或 USB video device class，是 Microsoft 与另外几家设备厂商联
合推出的为 USB 视频捕获设备定义的协议标准。符合 UVC 规格的硬件设备在不需要安装其他
驱动程序下即可在主机中正常使用。
插上 USB 摄像头，支持热插拨，串口打印的信息如下。


gst-launch-1.0 rtspsrc location=rtsp://192.168.6.175:8554/stream ! rtph264depay ! h264parse ! mppvideodec ! xvimagesink

fmpeg -re -i aaa.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/stream
ffmpeg -f v4l2 -video_size 640x480 -framerate 30 -i /dev/video9 -q 10 -f flv rtmp://127.0.0.1/live/mytest
ffmpeg -f v4l2 -video_size 640x480 -framerate 30 -i /dev/video0 -q 10  rtsp rtsp://127.0.0.1:8554/stream

ffmpeg -re -video_size 600x500 -i  /dev/video0 -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:8554/stream
ffmpeg -re -video_size 640x480 -i  /dev/video0 -vcodec libx264 -f rtsp rtsp://127.0.0.1:8554/stream
ffmpeg -list_devices true -f dshow -i dummy

-vf scale=640:480,setdar=4:3


I.MX6ULL 为核心的Cortex-A7 开发平台，CPU型号为MCIMX6Y2CVM08AB（800MHz），内存为512MB，存储为EMMC版本8GB，搭配RGB7寸IPS电容屏，分辨率为1024*600.板载资源丰富，非常适合工程进阶嵌入式 Linux 开发。开发板外设资源丰富，配套的文档教程内容详实，视频教程完善，适合用户入门学习 Linux 驱动开发。